﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace QLBH.Models
{
    public class WarehouseModel:ModelBase
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }


        private string created_at;

        public string Created_at
        {
            get { return created_at; }
            set { created_at = value; }
        }

        private string updated_at;

        public string Updated_at
        {
            get { return updated_at; }
            set { updated_at = value; }
        }

        private int shop_id;

        public int Shop_id
        {
            get { return shop_id; }
            set { shop_id = value; }
        }

        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string address;

        public string Address
        {
            get { return address; }
            set { address = value; }
        }
        private string comments;

        public string Comments
        {
            get { return comments; }
            set { comments = value; }
        }
        public WarehouseModel()
        {
        }
        public override NameValueCollection PrepareValue()
        {
            NameValueCollection uploadWarehouse = new NameValueCollection();
            uploadWarehouse.Add("id", this.Id.ToString());
            uploadWarehouse.Add("name", this.Name);
            uploadWarehouse.Add("address", this.Address);
            uploadWarehouse.Add("comments", this.Comments);
            return uploadWarehouse;
        }
    }
}
